package com.threegroup.admin.service;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * 验证码
 */
public interface ICaptchaService {

    /**
     * 创建验证码
     * @param response
     * @param uuid
     */
    void create(HttpServletResponse response, String uuid) throws IOException;

    boolean validate(String uuid, String code);
}
